<script setup lang="ts">
import { ref } from 'vue';

  var username = ref("张三")
  var age = ref(18)
  const addAge = () => {
    age.value++
  }
</script>
<template>
  <div>name:{{ username }}</div>
  <div>age:{{ age }}</div>
  <button @click="addAge">年龄+1</button>
  <input type="text" v-model="username">
</template>
<style scoped></style>